ltbConfsmall_obj={
	[1]={sn=1,s_resName="diaoxiang"},
	[2]={sn=2,s_resName="jianzhu"},
	[3]={sn=3,s_resName="mudishanshi"},
	[4]={sn=4,s_resName="shanshi"},
	[5]={sn=5,s_resName="shumu"},
	[6]={sn=6,s_resName="weilan"},
	[7]={sn=7,s_resName="weiqiang"},
	[8]={sn=8,s_resName="wujian"},
	[9]={sn=9,s_resName="zhalan"},
	[10]={sn=10,s_resName="zhibei"},
	[11]={sn=11,s_resName="mudizhibei"},
	[12]={sn=12,s_resName="mudiwujian"},

}

ltbConfsmall_obj.get = function( sn )
	local liMax = table.maxn( ltbConfsmall_obj )
	for i = 1, liMax do
		if sn == ltbConfsmall_obj[i].sn then
			return ltbConfsmall_obj[i]
		end
	end

	return nil
end

ltbConfsmall_obj.getBy = function( ... )
	local ltbCondition = { }
	local ltbResult = { }

	local arg = { ... }
	for k, v in ipairs( arg ) do
		ltbCondition[k] = v
	end

	local liMax		= table.maxn( ltbCondition )
	local liMaxTb	= table.maxn( ltbConfsmall_obj )
	if liMax % 2 ~= 0 then
		return nil
	end

	local liIndex = 1
	for liIndex = 1, liMaxTb do
		local lbIsMatch = true

		for j = 1, liMax, 2 do
			local lstrKey = ltbCondition[j]
			local lVaule = ltbCondition[j+1]

			if ltbConfsmall_obj[liIndex][lstrKey] ~= lVaule then
				lbIsMatch = false
				break
			end
		end

		if lbIsMatch then
			return ltbConfsmall_obj[liIndex]
		end
	end

	return nil
end

ltbConfsmall_obj.findAll = function( )
	return ltbConfsmall_obj
end
